import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'


//业务查复录入查询
export const apiUrlConfigQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/inquiryAndInquiryResponse/InquiryResponseEntry/search`,
}

//业务查询查复审核查询
export const apiUrlConfigApprove = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/inquiryAndInquiryResponse/ccmsInquiryResponseApprove/search`,
}

//业务查复信息查询
export const apiUrlConfigQueryQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/inquiryAndInquiryResponse/ccmsInquiryReplyQuery/search`,
}

// 业务查复录入详情
export function inquiryResponseEntryDetail(oriId) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/inquiryAndInquiryResponse/InquiryResponseEntry/detail?oriId=${oriId}`,
    method: 'get',
  })
}

// 业务查复审核详情
export function inquiryResponseApproveDetail(id) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/inquiryAndInquiryResponse/ccmsInquiryResponseApprove/detail?id=${id}`,
    method: 'get',
  })
}


// 业务查复录入提交
export function inquiryResponseEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/inquiryAndInquiryResponse/InquiryResponseEntry/save`,
    method: 'post',
    data:data
  })
}



// 业务查复审核通过
export function inquiryResponseApproveApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/inquiryAndInquiryResponse/ccmsInquiryResponseApprove/approve`,
    method: 'post',
    data:data
  })
}



// 业务查复审核拒绝
export function inquiryResponseApproveReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/inquiryAndInquiryResponse/ccmsInquiryResponseApprove/reject`,
    method: 'post',
    data:data
  })
}


// 业务查复信息查询详情
export function inquiryResponseQueryDetail(id) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/inquiryAndInquiryResponse/ccmsInquiryReplyQuery/detail?id=${id}`,
    method: 'get',
  })
}
